package com.lsb.fitnessnutrition

import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.fragment_preset_success.view.*
import org.tensorflow.lite.examples.classification.R

class PresetSuccessFragment : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val view = inflater.inflate(R.layout.fragment_preset_success, container, false)

        view.tvSuccess.setOnClickListener {
            //Navigation.findNavController(view).navigate(R.id.action_presetSuccessFragment_to_firstFragment)
            Navigation.findNavController(view).popBackStack(R.id.firstFragment,false)
        }

        return view;
    }


}